package cn.gjxblog.proxy.spring.utils.demo;

import cn.gjxblog.proxy.spring.utils.HelloService;
import cn.gjxblog.proxy.spring.utils.HelloServiceImpl;
import cn.gjxblog.proxy.spring.utils.TestContext;
import org.springframework.aop.framework.AopProxyUtils;

/**
 * TODO...
 *
 * @Author guojiaxun
 * @Date 2020/1/2 13:42
 */
public class AopProxyUtilsDemo {
	public static void main(String[] args) {
		HelloService helloService = TestContext.getProxy(new HelloServiceImpl());

		//
		System.out.println(AopProxyUtils.getSingletonTarget(helloService));

		System.out.println(AopProxyUtils.ultimateTargetClass(helloService));

	}

}
